home *** CD-ROM | disk | FTP | other *** search
/ Shareware Grab Bag / Shareware Grab Bag.iso / 011 / brutil.arc / ATTR.DOC < prev    next >
Encoding:
Text File  |  1987-08-25  |  3.0 KB  |  68 lines

  1.                -----  ATTR.COM  -----
  2.  
  3.  
  4.        The ATTR.COM utility fills a gap left by DOS Version 3.1's 
  5. ATTRIB.COM utility.  ATTRIB only changes the Read-Only file 
  6. attribute for a file's directory entry.  ATTR will change any or 
  7. all of the following attributes:
  8.        -- Archive bit
  9.        -- System file bit
  10.        -- Hidden file bit
  11.        -- Read-only file bit
  12.  
  13.        ATTR allows the user to turn on or turn off any of these 
  14. bits.
  15.  
  16.        For example, let's deal with a file named "GRIBIT.COM".  To 
  17. make this file "hidden" so it will not appear in a DIR listing, 
  18. just do     ATTR +H GRIBIT.COM  (return).  It won't show up in your 
  19. directory listings anymore.  If you want it to show up in the 
  20. directory listings again, just do    ATTR -H GRIBIT.COM (return).  
  21. Or, if you have a sub-directory you want to hide, use ATTR +H on 
  22. the sub- directory's name.  You can still access the directory 
  23. while it is hidden.  If you want to mark all files in a directory 
  24. as "hidden", just do  ATTR +H *.* (return).
  25.  
  26.        The Archive bit is used by some backup routines to determine 
  27. if a file has been backed up.  In certain cases, this bit is used 
  28. to determine whether or not the user may make another copy of a 
  29. certain file or program.  Before being backed up, the Archive bit 
  30. for a file is set to "on"; after being backed up, it is set to 
  31. "off".  To make multiple backups of a file, simply use ATTR to set 
  32. the Archive bit to "on".  The format is   ATTR +A GRIBIT.COM 
  33. (return).  Naturally, if the user wants to disallow a file from 
  34. being backed up, the Archive bit may be set to "off" with  
  35.   ATTR -H GRIBIT.COM (return).  Note that there are several 
  36. varieties of copy protection which do not use  this method at all.  
  37. ATTR.COM will not work with them.  All you can do is try and see if 
  38. you get results.
  39.  
  40.        The System bit is a little more tricky, as system files (for 
  41. example, IBMBIO.COM or IBMDOS.COM, which are System, Hidden, and 
  42. Read-only) will not execute if the System bit is turned off.  Be 
  43. careful not to play around with the System bit if you don't have a 
  44. recent backup made!
  45.  
  46.        To find out what the attributes of files are, use ATTR with 
  47. just a filename specification, and no "+" or "-" characters.
  48.  ATTR *.* (return)   will show you the attributes of all files in 
  49. the directory.   Or, for example,  ATTR *.COM (return)  will show 
  50. the attributes of all  .COM  files in the directory.
  51.  
  52.        ATTR.COM is from PC Magazine, June 10 1986, page 249 + ff.
  53.  
  54.                        --B.E.Noblick, Columbus OH
  55.  
  56.  
  57.  
  58.                                        --R.W.Fowler, Columbus OH
  59.  
  60.  
  61.  
  62. ATTR.COM is now distributed with a .ASM source file rather than the .BAS source
  63. as I received it.  It has also been made to recognize but not change volume
  64. labels on diskettes, hard disks or RAM disks.  If the effect of changing file
  65. attributes would be to set the same group of attributes already in effect for
  66. that file, ATTR does not change or list them.
  67. 
  68. attributes would be to set the same grou